(function () {
    // 房间状态
    window.RoomState = {
        created: 0,  // 刚创建
        prepare: 1,  // 准备阶段
        onGoing: 2,  // 正在游戏
        gameOver: 3, // 游戏结束
        end: 4       // 房间解散
    };

    // 房间基础状态
    window.Room = cc.Class({
        properties: {
            roomId: 0,
            roomState: RoomState.created,
            curentRound: 0,
            totalRound: 0,
            playOptions: [],
            isPlayback: false,
        },
        ctor: function () {
            var data = argumentsToObject(arguments);
            this.roomId = data.roomId || 0;
            this.roomState = data.roomState || RoomState.created;
            this.curentRound = data.curentRound || 0;
            this.totalRound = data.totalRound || 0;
            this.playOptions = data.playOptions || [];
            this.isPlayback = data.isPlayback || false;
        }
    });
})();